#!/bin/bash
# 图片存在放目录
fileName='/opt/software/wallpaper/*png'
while true; do
    [ "${MY_LOCK}" != "$0"  ] && exec env MY_LOCK="$0" flock -xn "$0" "$0" "$@"
    feh --recursive --randomize --bg-fill $fileName
    #nitrogen --restore
    sleep 10m
done
